<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/xhtml;charset=UTF-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=9"/>
<meta name="generator" content="Doxygen 1.8.11"/>
<title>Cheetah Software: Handler Class Reference</title>
<link href="../../tabs.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../jquery.js"></script>
<script type="text/javascript" src="../../dynsections.js"></script>
<link href="../../navtree.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../resize.js"></script>
<script type="text/javascript" src="../../navtreedata.js"></script>
<script type="text/javascript" src="../../navtree.js"></script>
<script type="text/javascript">
  $(document).ready(initResizable);
  $(window).load(resizeHeight);
</script>
<link href="../../search/search.css" rel="stylesheet" type="text/css"/>
<script type="text/javascript" src="../../search/searchdata.js"></script>
<script type="text/javascript" src="../../search/search.js"></script>
<script type="text/javascript">
  $(document).ready(function() { init_search(); });
</script>
<link href="../../doxygen.css" rel="stylesheet" type="text/css" />
</head>
<body>
<div id="top"><!-- do not remove this div, it is closed by doxygen! -->
<div id="titlearea">
<table cellspacing="0" cellpadding="0">
 <tbody>
 <tr style="height: 56px;">
  <td id="projectalign" style="padding-left: 0.5em;">
   <div id="projectname">Cheetah Software
   &#160;<span id="projectnumber">1.0</span>
   </div>
  </td>
 </tr>
 </tbody>
</table>
</div>
<!-- end header part -->
<!-- Generated by Doxygen 1.8.11 -->
<script type="text/javascript">
var searchBox = new SearchBox("searchBox", "../../search",false,'Search');
</script>
  <div id="navrow1" class="tabs">
    <ul class="tablist">
      <li><a href="../../index.html"><span>Main&#160;Page</span></a></li>
      <li><a href="../../namespaces.html"><span>Namespaces</span></a></li>
      <li class="current"><a href="../../annotated.html"><span>Classes</span></a></li>
      <li><a href="../../files.html"><span>Files</span></a></li>
      <li>
        <div id="MSearchBox" class="MSearchBoxInactive">
        <span class="left">
          <img id="MSearchSelect" src="../../search/mag_sel.png"
               onmouseover="return searchBox.OnSearchSelectShow()"
               onmouseout="return searchBox.OnSearchSelectHide()"
               alt=""/>
          <input type="text" id="MSearchField" value="Search" accesskey="S"
               onfocus="searchBox.OnSearchFieldFocus(true)" 
               onblur="searchBox.OnSearchFieldFocus(false)" 
               onkeyup="searchBox.OnSearchFieldChange(event)"/>
          </span><span class="right">
            <a id="MSearchClose" href="javascript:searchBox.CloseResultsWindow()"><img id="MSearchCloseImg" border="0" src="../../search/close.png" alt=""/></a>
          </span>
        </div>
      </li>
    </ul>
  </div>
  <div id="navrow2" class="tabs2">
    <ul class="tablist">
      <li><a href="../../annotated.html"><span>Class&#160;List</span></a></li>
      <li><a href="../../classes.html"><span>Class&#160;Index</span></a></li>
      <li><a href="../../inherits.html"><span>Class&#160;Hierarchy</span></a></li>
      <li><a href="../../functions.html"><span>Class&#160;Members</span></a></li>
    </ul>
  </div>
</div><!-- top -->
<div id="side-nav" class="ui-resizable side-nav-resizable">
  <div id="nav-tree">
    <div id="nav-tree-contents">
      <div id="nav-sync" class="sync"></div>
    </div>
  </div>
  <div id="splitbar" style="-moz-user-select:none;" 
       class="ui-resizable-handle">
  </div>
</div>
<script type="text/javascript">
$(document).ready(function(){initNavTree('d2/d01/class_handler.html','../../');});
</script>
<div id="doc-content">
<!-- window showing the filter options -->
<div id="MSearchSelectWindow"
     onmouseover="return searchBox.OnSearchSelectShow()"
     onmouseout="return searchBox.OnSearchSelectHide()"
     onkeydown="return searchBox.OnSearchSelectKey(event)">
</div>

<!-- iframe showing the search results (closed by default) -->
<div id="MSearchResultsWindow">
<iframe src="javascript:void(0)" frameborder="0" 
        name="MSearchResults" id="MSearchResults">
</iframe>
</div>

<div class="header">
  <div class="summary">
<a href="#pub-methods">Public Member Functions</a> &#124;
<a href="../../d4/d8d/class_handler-members.html">List of all members</a>  </div>
  <div class="headertitle">
<div class="title">Handler Class Reference</div>  </div>
</div><!--header-->
<div class="contents">

<p><code>#include &lt;<a class="el" href="../../d4/dd2/rt__interface__lcm_8h_source.html">rt_interface_lcm.h</a>&gt;</code></p>
<div id="dynsection-0" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-0-trigger" src="../../closed.png" alt="+"/> Collaboration diagram for Handler:</div>
<div id="dynsection-0-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-0-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d9/de1/class_handler__coll__graph.png" border="0" usemap="#_handler_coll__map" alt="Collaboration graph"/></div>
<map name="_handler_coll__map" id="_handler_coll__map">
</map>
</div>
<table class="memberdecls">
<tr class="heading"><td colspan="2"><h2 class="groupheader"><a name="pub-methods"></a>
Public Member Functions</h2></td></tr>
<tr class="memitem:a859908bca1e073bc2a874c89641a1cd5"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d01/class_handler.html#a859908bca1e073bc2a874c89641a1cd5">main_control_settings_handler</a> (const lcm::ReceiveBuffer *rbuf, const std::string &amp;channel, const gui_main_control_settings_t *msg)</td></tr>
<tr class="memdesc:a859908bca1e073bc2a874c89641a1cd5"><td class="mdescLeft">&#160;</td><td class="mdescRight"><a class="el" href="../../d2/d01/class_handler.html">Handler</a> for main control settings from MATLAB interface. Never call this yourself, leave it to LCM.  <a href="#a859908bca1e073bc2a874c89641a1cd5">More...</a><br /></td></tr>
<tr class="separator:a859908bca1e073bc2a874c89641a1cd5"><td class="memSeparator" colspan="2">&#160;</td></tr>
<tr class="memitem:a3dbe093443dd23a6f69e46548452b4cf"><td class="memItemLeft" align="right" valign="top">void&#160;</td><td class="memItemRight" valign="bottom"><a class="el" href="../../d2/d01/class_handler.html#a3dbe093443dd23a6f69e46548452b4cf">rc_channels_handler</a> (const lcm::ReceiveBuffer *rbuf, const std::string &amp;channel, const rc_channels_t *msg)</td></tr>
<tr class="separator:a3dbe093443dd23a6f69e46548452b4cf"><td class="memSeparator" colspan="2">&#160;</td></tr>
</table>
<a name="details" id="details"></a><h2 class="groupheader">Detailed Description</h2>
<div class="textblock">
<p>Definition at line <a class="el" href="../../d4/dd2/rt__interface__lcm_8h_source.html#l00013">13</a> of file <a class="el" href="../../d4/dd2/rt__interface__lcm_8h_source.html">rt_interface_lcm.h</a>.</p>
</div><h2 class="groupheader">Member Function Documentation</h2>
<a class="anchor" id="a859908bca1e073bc2a874c89641a1cd5"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Handler::main_control_settings_handler </td>
          <td>(</td>
          <td class="paramtype">const lcm::ReceiveBuffer *&#160;</td>
          <td class="paramname"><em>rbuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const gui_main_control_settings_t *&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p><a class="el" href="../../d2/d01/class_handler.html">Handler</a> for main control settings from MATLAB interface. Never call this yourself, leave it to LCM. </p>
<dl class="params"><dt>Parameters</dt><dd>
  <table class="params">
    <tr><td class="paramdir">[in]</td><td class="paramname">rbuf</td><td>The receive buffer </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">channel</td><td>The name of the LCM Channel </td></tr>
    <tr><td class="paramdir">[in]</td><td class="paramname">msg</td><td>Pointer to the LCM message </td></tr>
  </table>
  </dd>
</dl>

<p>Definition at line <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00040">40</a> of file <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html">rt_interface_lcm.cpp</a>.</p>

<p>References <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00012">iterations_since_last_lcm</a>, <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00008">lcm_get_set_mutex</a>, and <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00030">main_control_settings</a>.</p>
<div class="fragment"><div class="line"><a name="l00042"></a><span class="lineno">   42</span>&#160;                                            {</div><div class="line"><a name="l00043"></a><span class="lineno">   43</span>&#160;  (void)rbuf;</div><div class="line"><a name="l00044"></a><span class="lineno">   44</span>&#160;  (void)channel;</div><div class="line"><a name="l00045"></a><span class="lineno">   45</span>&#160;</div><div class="line"><a name="l00046"></a><span class="lineno">   46</span>&#160;  <a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#a75fdd6c290f5f8a1506d49ceec06682d">iterations_since_last_lcm</a> = 0;</div><div class="line"><a name="l00047"></a><span class="lineno">   47</span>&#160;  pthread_mutex_lock(&amp;<a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#a8303863c7983ff8c60f23de0d0265d51">lcm_get_set_mutex</a>);</div><div class="line"><a name="l00048"></a><span class="lineno">   48</span>&#160;  <a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#a88fa377ae01a8f76015305fd22a4d3f0">main_control_settings</a> = *msg;</div><div class="line"><a name="l00049"></a><span class="lineno">   49</span>&#160;  pthread_mutex_unlock(&amp;<a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#a8303863c7983ff8c60f23de0d0265d51">lcm_get_set_mutex</a>);</div><div class="line"><a name="l00050"></a><span class="lineno">   50</span>&#160;}</div><div class="ttc" id="rt__interface__lcm_8cpp_html_a8303863c7983ff8c60f23de0d0265d51"><div class="ttname"><a href="../../dd/df1/rt__interface__lcm_8cpp.html#a8303863c7983ff8c60f23de0d0265d51">lcm_get_set_mutex</a></div><div class="ttdeci">static pthread_mutex_t lcm_get_set_mutex</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00008">rt_interface_lcm.cpp:8</a></div></div>
<div class="ttc" id="rt__interface__lcm_8cpp_html_a88fa377ae01a8f76015305fd22a4d3f0"><div class="ttname"><a href="../../dd/df1/rt__interface__lcm_8cpp.html#a88fa377ae01a8f76015305fd22a4d3f0">main_control_settings</a></div><div class="ttdeci">gui_main_control_settings_t main_control_settings</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00030">rt_interface_lcm.cpp:30</a></div></div>
<div class="ttc" id="rt__interface__lcm_8cpp_html_a75fdd6c290f5f8a1506d49ceec06682d"><div class="ttname"><a href="../../dd/df1/rt__interface__lcm_8cpp.html#a75fdd6c290f5f8a1506d49ceec06682d">iterations_since_last_lcm</a></div><div class="ttdeci">int iterations_since_last_lcm</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00012">rt_interface_lcm.cpp:12</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-1" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-1-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-1-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-1-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d2/d01/class_handler_a859908bca1e073bc2a874c89641a1cd5_icgraph.png" border="0" usemap="#d2/d01/class_handler_a859908bca1e073bc2a874c89641a1cd5_icgraph" alt=""/></div>
<map name="d2/d01/class_handler_a859908bca1e073bc2a874c89641a1cd5_icgraph" id="d2/d01/class_handler_a859908bca1e073bc2a874c89641a1cd5_icgraph">
</map>
</div>
</p>

</div>
</div>
<a class="anchor" id="a3dbe093443dd23a6f69e46548452b4cf"></a>
<div class="memitem">
<div class="memproto">
      <table class="memname">
        <tr>
          <td class="memname">void Handler::rc_channels_handler </td>
          <td>(</td>
          <td class="paramtype">const lcm::ReceiveBuffer *&#160;</td>
          <td class="paramname"><em>rbuf</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const std::string &amp;&#160;</td>
          <td class="paramname"><em>channel</em>, </td>
        </tr>
        <tr>
          <td class="paramkey"></td>
          <td></td>
          <td class="paramtype">const rc_channels_t *&#160;</td>
          <td class="paramname"><em>msg</em>&#160;</td>
        </tr>
        <tr>
          <td></td>
          <td>)</td>
          <td></td><td></td>
        </tr>
      </table>
</div><div class="memdoc">

<p>Definition at line <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00052">52</a> of file <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html">rt_interface_lcm.cpp</a>.</p>

<p>References <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00008">lcm_get_set_mutex</a>, and <a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00034">rc_channels</a>.</p>
<div class="fragment"><div class="line"><a name="l00054"></a><span class="lineno">   54</span>&#160;                                                            {</div><div class="line"><a name="l00055"></a><span class="lineno">   55</span>&#160;  (void)rbuf;</div><div class="line"><a name="l00056"></a><span class="lineno">   56</span>&#160;  (void)channel;</div><div class="line"><a name="l00057"></a><span class="lineno">   57</span>&#160;</div><div class="line"><a name="l00058"></a><span class="lineno">   58</span>&#160;  pthread_mutex_lock(&amp;<a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#a8303863c7983ff8c60f23de0d0265d51">lcm_get_set_mutex</a>);</div><div class="line"><a name="l00059"></a><span class="lineno">   59</span>&#160;  <a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#aa0a50d701c6abf61123433597908a249">rc_channels</a> = *msg;</div><div class="line"><a name="l00060"></a><span class="lineno">   60</span>&#160;  pthread_mutex_unlock(&amp;<a class="code" href="../../dd/df1/rt__interface__lcm_8cpp.html#a8303863c7983ff8c60f23de0d0265d51">lcm_get_set_mutex</a>);</div><div class="line"><a name="l00061"></a><span class="lineno">   61</span>&#160;}</div><div class="ttc" id="rt__interface__lcm_8cpp_html_aa0a50d701c6abf61123433597908a249"><div class="ttname"><a href="../../dd/df1/rt__interface__lcm_8cpp.html#aa0a50d701c6abf61123433597908a249">rc_channels</a></div><div class="ttdeci">rc_channels_t rc_channels</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00034">rt_interface_lcm.cpp:34</a></div></div>
<div class="ttc" id="rt__interface__lcm_8cpp_html_a8303863c7983ff8c60f23de0d0265d51"><div class="ttname"><a href="../../dd/df1/rt__interface__lcm_8cpp.html#a8303863c7983ff8c60f23de0d0265d51">lcm_get_set_mutex</a></div><div class="ttdeci">static pthread_mutex_t lcm_get_set_mutex</div><div class="ttdef"><b>Definition:</b> <a href="../../dd/df1/rt__interface__lcm_8cpp_source.html#l00008">rt_interface_lcm.cpp:8</a></div></div>
</div><!-- fragment -->
<p><div id="dynsection-2" onclick="return toggleVisibility(this)" class="dynheader closed" style="cursor:pointer;">
  <img id="dynsection-2-trigger" src="../../closed.png" alt="+"/> Here is the caller graph for this function:</div>
<div id="dynsection-2-summary" class="dynsummary" style="display:block;">
</div>
<div id="dynsection-2-content" class="dyncontent" style="display:none;">
<div class="center"><img src="../../d2/d01/class_handler_a3dbe093443dd23a6f69e46548452b4cf_icgraph.png" border="0" usemap="#d2/d01/class_handler_a3dbe093443dd23a6f69e46548452b4cf_icgraph" alt=""/></div>
<map name="d2/d01/class_handler_a3dbe093443dd23a6f69e46548452b4cf_icgraph" id="d2/d01/class_handler_a3dbe093443dd23a6f69e46548452b4cf_icgraph">
</map>
</div>
</p>

</div>
</div>
<hr/>The documentation for this class was generated from the following files:<ul>
<li><a class="el" href="../../d4/dd2/rt__interface__lcm_8h_source.html">rt_interface_lcm.h</a></li>
<li><a class="el" href="../../dd/df1/rt__interface__lcm_8cpp_source.html">rt_interface_lcm.cpp</a></li>
</ul>
</div><!-- contents -->
</div><!-- doc-content -->
<!-- start footer part -->
<div id="nav-path" class="navpath"><!-- id is needed for treeview function! -->
  <ul>
    <li class="navelem"><a class="el" href="../../d2/d01/class_handler.html">Handler</a></li>
    <li class="footer">Generated by
    <a href="http://www.doxygen.org/index.html">
    <img class="footer" src="../../doxygen.png" alt="doxygen"/></a> 1.8.11 </li>
  </ul>
</div>
</body>
</html>
